import {request} from "./request";

export function captchaURL() {
    return "http://localhost:8080/api/captcha/image"
}


export function checkCaptchaAPI(phone,code) {

    return request({
        url:'/api/captcha/checkCaptcha',
        method:'Get',
        params:{
            code:code,
            phone:phone
        }
    })

}


export function getSmsCodeAPI(phone) {

    return request({
        url:'/api/captcha/sms',
        params:{
            phone:phone
        }
    })

}